package multimedia;

import modelUtil.Configuracion;

public final class MultimediaDAOFactory {

	public static IMultimediaDAO GetDAO() {

		try {
			Configuracion.instancia().leerDoc();
			String daoClassName = Configuracion.instancia().getMultimediaDAOclass();

			if (daoClassName.equals("XMLMultimediaDAO")) {
				 
				Object theObject = new XMLMultimediaDAO();

				return (IMultimediaDAO) theObject;
			}

			return null;
		} catch (Exception e) {

			return null;
		}

	}
}
